package com.wsm.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wsm.system.domain.UserDO;

import java.util.List;
import java.util.Map;

/**
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2017-10-03 09:45:11
 */
public interface UserDao extends BaseMapper<UserDO> {

	UserDO get(Long userId);

	List<UserDO> list(Map<String, Object> map);

	int count(Map<String, Object> map);

	int save(UserDO user);

	int orUpdate(UserDO user);
	
	int remove(Long userId);
	
	int batchRemove(Long[] userIds);
	
	Long[] listAllDept();

}
